<div id='wrapper'>
<?php $this->widget('FrontMenuWidget'); ?>
</div>

    <div id="content">
    	<div class="container">
	    	<div class="banner">
            	<img src="<?php echo Yii::app()->baseUrl; ?>/images/products/giay1.png" width="220" height="188">
                <div class="info">
                	Giày búp bê<br/>
					Giảm giá 50% từ 30/4/2014 - 2/5/2014
                </div>
            </div>
            <div class="breadcrumb">
            	<a href="/">Trang chủ</a> / 
                <a href="<?php echo Yii::app()->params['linkGX'];?>/category/<?php echo $sub['category']['CateNameRewrite']?>"><?php echo $sub['category']['CategoryName'];?></a> / 
                <a href="<?php echo Yii::app()->params['linkGX'];?>/subcategory">Giày búp bê</a>
            </div>
            <div class="clear"></div>
            <?php $this->widget('SidebarWidget'); ?>
            
            <div id="main-content" class="fr">
            	<h3 class="title">GIÀY BÚP BÊ</h3>
                <div class="fl result">Kết quả 1 tới <span>50</span> trong tổng số <span>199</span></div>
                <div class="fr filter">
                	SẮP XẾP THEO:
                	<select class="f-price">
                    	<option value="ASC">Giá thấp đến cao</option>
                        <option value="DESC">Giá cao đến thấp</option>
                    </select>
                    HIỆN:
                    <select class="f-num">
                    	<option value="50">50 sản phẩm</option>
                        <option value="100">100 sản phẩm</option>
                    </select>
                </div>
                <div class="clear"></div>
                <div class="content">
                	<ul class="list">
                    <?php 
                    if($product !== null){
                    foreach ($product as $key => $value) {?>
                       <li class="first">
                            <img src="<?php echo Yii::app()->baseUrl; ?>/timthumb.php?src=/images/cover/<?php echo $value['CoverPhoto'];?>&amp;h=200&amp;w=216" width="216" height="200"><br>
                            <a href="<?php echo Yii::app()->params['linkGX'];?>/product/<?php echo $value['ProductNameRewrite'];?>"><?php echo $value['ProductName'];?></a><br/>
							<?php echo CHtml::link(CHtml::encode($data->ProductName),array('view', 'id'=>$data->ProductNameRewrite)); ?>
                            <p class="price"><?php echo number_format($value['Price'], 0, ',', '.');?>đ</p>
                        </li>
                    <?php 
                        }
                        }
                    ?>
                    	
                    </ul>
                    <div class="clear"></div>
                </div>
                <div class="clear"></div>
                <div class="navi">
                	<a class="left" href="#"></a>
                    <ul>
                    	<li class="current"><a href="#">1</a></li>
                        <li><a href="#">2</a></li>
                        <li><a href="#">3</a></li>
                        <li><a href="#">4</a></li>
                        <li><a href="#">5</a></li>
                        <li><a href="#">....</a></li>
                        <li><a href="#">100</a></li>
                    </ul>
                    <a class="right" href="#"></a>
                </div>
            </div>
            <div class="clear"></div>
        </div>
    </div>


	<b><?php echo CHtml::encode($data->getAttributeLabel('ProductId')); ?>:</b>
	<?php echo CHtml::link(CHtml::encode($data->ProductId), array('view', 'id'=>$data->ProductId)); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('CategoryId')); ?>:</b>
	<?php echo CHtml::encode($data->CategoryId); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('SubCategoryId')); ?>:</b>
	<?php echo CHtml::encode($data->SubCategoryId); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('GenreId')); ?>:</b>
	<?php echo CHtml::encode($data->GenreId); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('BrandId')); ?>:</b>
	<?php echo CHtml::encode($data->BrandId); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('ProductName')); ?>:</b>
	<?php echo CHtml::encode($data->ProductName); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('ProductNameRewrite')); ?>:</b>
	<?php echo CHtml::encode($data->ProductNameRewrite); ?>
	<br />